﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SAP.BusinessOne.Cockpit.Models;

namespace SAP.BusinessOne.Cockpit.Services
{
    class PageService
    {
        public CockpitPage[] GetPages()
        {
            // TODO: remove the fake data
            return new[] 
            { 
                new CockpitPage 
                { 
                    PageId = 1,
                    Name = "Home",
                    Tiles = new List<Tile>
                    {
                        new Tile{ TileId = 1, WidgetEntry = 1, Type = "OKPI", Size = "1x1" },
                        new Tile{ TileId = 2, WidgetEntry = 2, Type = "OKPI", Size = "1x1" },
                        new Tile{ TileId = 3, WidgetEntry = 3, Type = "OKPI", Size = "1x1" },
                        new Tile{ TileId = 4, WidgetEntry = 1, Type = "OWPK", Size = "1x1" },
                        new Tile{ TileId = 10, WidgetEntry = 1, Type = "QuickAccess", Size = "1x2" },
                        new Tile{ TileId = 11, WidgetEntry = 1, Type = "Alert", Size = "1x2" },
                        new Tile{ TileId = 12, WidgetEntry = 1, Type = "Workbench", Size = "3x2" }
                    }
                }, 
                new CockpitPage 
                { 
                    PageId = 2,
                    Name = "Sales",
                    Tiles = new List<Tile>
                    {
                        new Tile{ TileId = 5, WidgetEntry = 1, Type = "OKPI", Size = "1x1" },
                        new Tile{ TileId = 6, WidgetEntry = 2, Type = "OKPI", Size = "1x1" },
                        new Tile{ TileId = 7, WidgetEntry = 3, Type = "OKPI", Size = "1x1" },
                        new Tile{ TileId = 8, WidgetEntry = 1, Type = "OWPK", Size = "1x1" }
                    }
                } 
            };
        }
    }
}
